package ch.zbw.pra.sysventory.domain.factories;

import java.io.File;

public class FileGenerator {
	public enum FileType {
		SETTING, BARCODE, ICON_LOUPE, ICON_PGS, WELCOME, PGS_PICTURES, UEBER_BACKGROUND
	};

	public File getFile(FileType filetype) {
		File file = new File("");
		String filePath = System.getProperty("user.dir");
		filePath += File.separator + "src" + File.separator + "main" + File.separator + "resources"
				+ File.separator;
		switch (filetype) {
		case SETTING:
			filePath = System.getProperty("user.dir") + File.separator;
			String fileName = filePath + "gui_settings.xml";
			file = new File(fileName);
			break;
		case BARCODE:
			fileName = filePath + "barcodeScanr.jpg";
			file = new File(fileName);
			break;
		case ICON_LOUPE:
			fileName = filePath + "icon_loupe.gif";
			file = new File(fileName);
			break;
		case ICON_PGS:
			fileName = filePath + "pgs.gif";
			file = new File(fileName);
			break;
		case WELCOME:
			fileName = filePath + "sysventoryWelcome.gif";
			file = new File(fileName);
			break;
		case PGS_PICTURES:
			fileName = filePath + "pgs_Logo100.gif";
			file = new File(fileName);
			break;
		}
		return file;
	}

}
